package com.szq.pattern.user;

import com.szq.pattern.visitor.Visitor;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-11 08:49:37
 */
public class Student extends User {

    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int ranking(){
        return (int) (Math.random() * 100);
    }
}
